package com.dxysun.sentinel.springboot.controller;

import com.dxysun.sentinel.springboot.service.MyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class MyController
{
	@Autowired
	private MyService myService;

	@RequestMapping("/hello")
	@ResponseBody
	public String hello()
	{
		return myService.sayHello("world");
	}
}
